import { defineStore } from "pinia"

export const useAlertDetailStore = defineStore({
    id: 'alertDetail',
    state: () => ({
        show: false,
        message: [],
        isFack: false,
        btnShow: true
    }),
    actions: {
        async SetShow(show: any) {

            this.$patch({
                show: show,
            });
        },
        async SetMessage(message: any) {

            this.$patch({
                message: message,
            });
        },
        async Setfack(fack: any) {

            this.$patch({
                isFack: fack,
            });
        },
        async Setbtnshow(flag: any) {

            this.$patch({
                btnShow: flag,
            });
        },
        
    },
})